<wxs module="dateFr" src="../../js/filter.wxs"></wxs>
<view id='pageOrder'>
    <view id='top' wx:if='{{orderInfo.refundOrderVo.state==0}}'>
        <label>订单已经退款</label>
        <label>{{dateFr.filterTime(orderInfo.refundOrderVo.refundTime)}}</label>
        <label>¥{{orderInfo.refundOrderVo.refundSum}}</label>
    </view>
    <view id='code_view'>
        <view wx:if='{{isShow}}' class='sss0'>
        </view>    
        <label class="line {{class1}}"></label>
        <label class="line {{class2}}"></label>
        <label class="line {{class3}}"></label>
        <image class='type_img' src="{{urlAddress}}/meal_icon_{{image1}}.png" />
        <image class='type_img' src="{{urlAddress}}/meal_icon_{{image2}}.png" />
        <image class='type_img' src="{{urlAddress}}/meal_icon_{{image3}}.png" />
        <image class='type_img' src="{{urlAddress}}/meal_icon_{{image4}}.png" />
        
        <label class="typeList"><p wx:if='{{isShow}}' class="sss1"></p>待付款</label>
        <label class="typeList"><p wx:if='{{isShow}}'align="" class="sss1"></p>已支付</label>
        <label class="typeList"><p wx:if='{{isShow}}' class="sss1"></p>待收货</label>
        <label class="typeList"><p wx:if='{{isShow}}' class="sss1"></p>已完成</label>
        <p wx:if='{{isShow}}' class="sss2"></p>
        <image class='code_img' src="{{urlAddress}}/meal_image_number.png" />
        <label class="code_msg">取货码</label>
        <label class="code_num">{{orderInfo.reserveOrderVo.pickingCode||'暂无'}}</label>
    </view>
    <view id='goods'>
        <view class='items_style' wx:for="{{orderInfo.orderGoods}}" wx:key="{{index}}">
            <!--  <image class='market_style' src="http://static.24xiaomai.com/go/wxapplet/1.3.0/image/superMarket_logo.png" /> -->
            <image class='market_style' wx:if="{{item.imagePath==null}}" src="{{urlAddress}}/xiaomai.jpg" />
            <image class='market_style' wx:if="{{item.imagePath!=null}}" class='market_style' src="{{item.imagePath}}" />
            <label class="goods_name"><p wx:if='{{isShow}}' class="sss3"></p>{{item.goodsName}}</label>
            <label class="goods_money"><span>×{{item.num}}<d wx:if='{{isShow}}' class="sss4"></d></span>
               <p>¥{{item.price}}<d wx:if='{{isShow}}' class="sss5"></d></p></label>
        </view>
        <view class='goodsMoney'>¥{{orderInfo.price}}<d wx:if='{{isShow}}' class="sss8"></d></view>
    </view>
    <view id='other'>
        <view class='msg'>
            <label><p wx:if='{{isShow}}' class="sss6"></p>订单编号:{{orderInfo.reserveOrderVo.orderCode}}</label>
            <label><p wx:if='{{isShow}}' class="sss7"></p>下单时间:{{dateFr.filterTime(orderInfo.createDate)}}</label>
        </view>
        <view class='note'>
            <label wx:if='{{orderInfo.reserveOrderVo.deliveryModel==20}}'>
                <p>就餐方式</p><span >外卖</span>
            </label>
            <label wx:if='{{orderInfo.reserveOrderVo.deliveryModel==10}}'>
                <p>就餐方式</p><span >自提</span>
            </label>
            <label>
                <d wx:if='{{isShow}}' class='sss10'></d>
                <p><d wx:if='{{isShow}}' class='sss9'></d>{{noteType}}地址</p><span>{{orderInfo.reserveOrderVo.fixedAddress||''}}<l wx:if='{{orderInfo.reserveOrderVo.deliveryModel==20}}'>{{orderInfo.reserveOrderVo.deliveryAddress}}</l></span>
            </label>
            <label>
                <d wx:if='{{isShow}}' class='sss10'></d>
                <p><d wx:if='{{isShow}}' class='sss9'></d>{{noteType}}时间</p><span>{{dateFr.filterTime2(orderInfo.reserveOrderVo.pickupTime)}}</span>
            </label>
            <view class="remark-box">
                <d wx:if='{{isShow}}' class='sss10'></d>
                <p><d wx:if='{{isShow}}' class='sss9'></d>备注</p><span class="remark">{{orderInfo.reserveOrderVo.remark||'无'}}</span>
            </view>
        </view>
    </view>
    <view id='callPhone' wx:if="{{!isShow}}">
    	<span bindtap='callOwers' data-code="{{orderInfo.shopCode}}" ><image src="../../img/icon_phone.png"></image>联系店主</span>
    </view>
</view>